package com.m;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by 四毛强 on 2021/7/9.
 */
public class D {
    public static void main(String[] args) {
        List<Map<String, Object>> list1 = new ArrayList<Map<String, Object>>();
        Map<String, Object> m1 = new HashMap<String, Object>();
        m1.put("age", "年龄好");
        m1.put("name", "66");
        list1.add(m1);
        Map<String, Object> m2 = new HashMap<String, Object>();
        m2.put("age", "55");
        m2.put("name", "好名字");
        list1.add(m2);
        System.out.println(list1.get(0).get("age")+"***"+list1.get(1).get("name"));

        List<Map<String,Object>> list = new ArrayList<Map<String,Object>>();
        Map<String,Object> map = new HashMap<String, Object>();
        map.put("a","a");
        map.put("b","哇哈哈哈好喝");
        map.put("c","a");
        map.put("d","a");
        list.add(map);
        System.out.println(list.get(0).get("b"));
    }




}
